package com.mlming.springboot.service;

import com.github.pagehelper.PageInfo;
import com.mlming.springboot.form.ShippingForm;
import com.mlming.springboot.vo.ResponseVo;

import java.util.Map;

public interface ShippingService {
    /**
     * 添加收货地址
     */
    ResponseVo<Map<String,Integer>> addShipping(Integer userId, ShippingForm form);
    /**
     * 删除收货地址
     */
    ResponseVo deleteShipping(Integer userId, Integer shippingId);
    /**
     * 更新收货地址
     */
    ResponseVo updateShipping(Integer userId,Integer shippingId,ShippingForm form);

    /**
     * 获取用户的收获地址列表
     */
    ResponseVo<PageInfo> getShippingList(Integer userId,Integer pageNum,Integer pageSize);
}
